using System;
using System.ComponentModel;
using System.Collections.Generic;

/// <summary>
/// Business entity class generated from Repository
/// </summary>
/// <remarks>
/// Created by: huanhvhd
/// Created date: [2011-04-22]
/// </remarks>
namespace TVN.ShopMan.Entities
{
	public partial class RepositoryEntity
	{
		#region Properties
		
		public partial class Properties
		{
			public const string Id = "Id";
			public const string Name = "Name";
			public const string Address = "Address";
			public const string Email = "Email";
			public const string IsActive = "IsActive";
			public const string StartDate = "StartDate";
			public const string CreatedDate = "CreatedDate";
			public const string LastModifiedDate = "LastModifiedDate";
			public const string CreatedBy = "CreatedBy";
			public const string LastModifiedBy = "LastModifiedBy";
			public const string OwnerId = "OwnerId";
		}

		#endregion

		#region Private fields

		private long _id;
		private string _name;
		private string _address;
		private string _email;
		private bool _isActive;
		private DateTime _startDate;
		private DateTime _createdDate;
		private DateTime? _lastModifiedDate;
		private AccountEntity _createdBy;
		private AccountEntity _lastModifiedBy;
		private AccountEntity _ownerId;

		private IList<AccountRepositoryEntity> _accountRepositoriesRepositoryId = new List<AccountRepositoryEntity>();
		private IList<OrderSummaryEntity> _orderSummariesRepositoryId = new List<OrderSummaryEntity>();
		private IList<ProductRepositoryEntity> _productRepositoriesRepositoryId = new List<ProductRepositoryEntity>();
		private IList<RepositoryPhoneNumberEntity> _repositoryPhoneNumbersRepositoryId = new List<RepositoryPhoneNumberEntity>();

		#endregion

		#region Constructors

		public RepositoryEntity()
		{
		}

		#endregion

		#region Properties

		public long Id
		{
			get { return _id; }
		}

		public string Name
		{
			get { return _name; }
			set { _name = value; }
		}

		public string Address
		{
			get { return _address; }
			set { _address = value; }
		}

		public string Email
		{
			get { return _email; }
			set { _email = value; }
		}

		public bool IsActive
		{
			get { return _isActive; }
			set { _isActive = value; }
		}

		public DateTime StartDate
		{
			get { return _startDate; }
			set { _startDate = value; }
		}

		public DateTime CreatedDate
		{
			get { return _createdDate; }
			set { _createdDate = value; }
		}

		public DateTime? LastModifiedDate
		{
			get { return _lastModifiedDate; }
			set { _lastModifiedDate = value; }
		}

		public AccountEntity CreatedBy
		{
			get { return _createdBy; }
			set { _createdBy = value; }
		}

		public AccountEntity LastModifiedBy
		{
			get { return _lastModifiedBy; }
			set { _lastModifiedBy = value; }
		}

		public AccountEntity OwnerId
		{
			get { return _ownerId; }
			set { _ownerId = value; }
		}

		public IList<AccountRepositoryEntity> AccountRepositoriesRepositoryId
		{
			get { return _accountRepositoriesRepositoryId; }
			set { _accountRepositoriesRepositoryId = value; }
		}
		public IList<OrderSummaryEntity> OrderSummariesRepositoryId
		{
			get { return _orderSummariesRepositoryId; }
			set { _orderSummariesRepositoryId = value; }
		}
		public IList<ProductRepositoryEntity> ProductRepositoriesRepositoryId
		{
			get { return _productRepositoriesRepositoryId; }
			set { _productRepositoriesRepositoryId = value; }
		}
		public IList<RepositoryPhoneNumberEntity> RepositoryPhoneNumbersRepositoryId
		{
			get { return _repositoryPhoneNumbersRepositoryId; }
			set { _repositoryPhoneNumbersRepositoryId = value; }
		}
		#endregion

	} }

